﻿var app = angular.module('app', []) // this is where we inject our services

app.controller('MyController', function ($scope) {    //define controller, attach it to module and pass through anonymous functions
    $scope.myVariable = "Hello Angular";
    $scope.reverse = function (word) {  // this is how to define in angular
        $scope.reversed = word.split('').reverse().join('');
    };
    
}); 